Skip to content

spawn: add direct Landlock policies#15504

Closed
Alizter wants to merge 2 commits into
ocaml:mainfrom
Alizter:push-yxqyryzxsnxp
Closed

spawn: add direct Landlock policies#15504
Alizter wants to merge 2 commits into
ocaml:mainfrom
Alizter:push-yxqyryzxsnxp

Conversation

@Alizter

@Alizter Alizter commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

This is on top of #15231, adding landlock bindings for spawn.

rgrinberg and others added 2 commits July 13, 2026 13:17
Add a selectable --sandbox-actions-backend option with auto, bwrap, and
landlock backends. Implement a Landlock wrapper/internal command that keeps the
shared cache read-only, keep bwrap available explicitly, and factor shared
program lookup helpers into bin Util.

Add cram coverage for bwrap/Landlock shared-cache policies and backend
selection.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Move the typed write-policy and ruleset implementation into Stdune and
let Spawn install a prepared Landlock ruleset directly in the child
before exec. Keep the internal wrapper as a black-box test interface.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter
Alizter force-pushed the push-yxqyryzxsnxp branch from 8832645 to da41678 Compare July 14, 2026 13:32
@rgrinberg

Copy link
Copy Markdown
Member

The bindings look good, but I think this is still relying on action runners. That is something I prefer to avoid at this time. I'll incorporate some the binding work from here though.

@rgrinberg rgrinberg closed this Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants